#include <gtkmm/menubar.h>
#include <gtkmm/menu.h>
#include <gtkmm/box.h>

#include "Minefield.hpp"

Minefield::Minefield() : Gtk::Window()
{
    // Draw window
    set_title("MineSweeperEX");
    resize(225, 200);
    set_position(Gtk::WIN_POS_CENTER);

    Gtk::VBox *vbox = manage(new Gtk::VBox());
    add(*vbox);

    Gtk::MenuBar *menu = manage(new Gtk::MenuBar());
    vbox->pack_start(*menu);

    Gtk::Menu *gameMenu = manage(new Gtk::Menu());
    gameMenu->set_title("Game");
    menu->add(*gameMenu);

    Gtk::MenuItem *gameMenuItem = manage(new Gtk::MenuItem("Create a _New Server"));
    // TODO : Connect signals
    gameMenu->append(*gameMenuItem);

    gameMenuItem = manage(new Gtk::MenuItem("_Connect to a server"));
    // TODO : Connect signals
    gameMenu->append(*gameMenuItem);

    gameMenuItem = manage(new Gtk::MenuItem("_Quit"));
    // TODO : Connect signals
    gameMenu->append(*gameMenuItem);

    show_all();

    // Generate Minefield

}

Minefield::~Minefield()
{

}

void Minefield::reveal(int r, int c)
{

}
